package com.example.personnel_oa.mapper;
//数据访问层
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.comment_oa.pojos.Recruits;
import com.example.comment_oa.pojos_vo.zff.RecruitsVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import java.util.List;

/**
* @author HUAWEI
* @description 针对表【recruits】的数据库操作Mapper
* @createDate 2022-10-20 14:56:12
* @Entity personnel_oa.pojos.Recruits
*/
@Mapper//识别他为mybatis的mapper接口
public interface RecruitsMapper extends BaseMapper<Recruits> {
    @Select("SELECT * FROM recruits")//利用注解开发就不需要xml映射文件
    public List<Recruits> Methods_rec( );

    public List<Recruits> allRecruits();

    public List<Recruits> allrecruits(int recId);
    //查询入职员工详情
    List<Recruits> allRecruits2(int recId);
    //才人入职成功后修改入职状态
    int upstate(int recId,int empId);
    //查询已入职记录
    List<Recruits> allRecruits3(RecruitsVo recruitsVo);
    //新增待入职信息
    int addrecruits(Recruits recruits);

}




